<?php
/**
 * Created by 陈艺赫.
 * User: Vvvvv
 * Date: 2017/12/2
 * Time: 14:53
 */

namespace Admin\Controller;

class IndexController extends BaseController
{
    public function index(){
        $user_info = $_SESSION['user'];
        $db_menu = M('menu');
        $data_menu = $db_menu->where('status = 1')->order('sequence')->select();

        $this->assign('user',$user_info);
        $this->assign('menu',$data_menu);
        $this->display();
    }


}